<%@ Page Language="C#" ValidateRequest="false" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="EditProductInDetail.aspx.cs" Inherits="Admin_EditProductInDetail" Title="Untitled Page" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderAdmin" Runat="Server">

<h3 id="title">Edit product information in details</h3>

<p>
    <asp:Label ID="lblError" runat="server" ForeColor="red" />
</p>     
<table cellpadding="10px" style="margin:10px auto">
    <tr>
        <td colspan="5">
            What do you want to do ?<br />
            <asp:RadioButtonList ID="rbSelectCommand" runat="server" RepeatDirection="Horizontal" AutoPostBack="true" 
                            OnSelectedIndexChanged="rbSelectCommand_SelectedIndexChanged">
                <asp:ListItem Text="Edit" Value="Edit" />            
                <asp:ListItem Text="Insert" Value="Insert" />
                <asp:ListItem Text="Delete" Value="Delete" />
            </asp:RadioButtonList>               
        </td>
    </tr>
    <tr>
        <td>
        
        </td>
        <td>
            ProductID : 
        </td>
        <td>
            <asp:TextBox ID="txtProductID" runat="server" ReadOnly="true" />
        </td>
        <td>
            CategoryID : 
        </td>
        <td>
            <asp:TextBox ID="txtCategoryID" runat="server"  />                                    
        </td>
    </tr>
    <tr>
        <td>
        
        </td>        
        <td>
            ProductName : 
        </td>                            
        <td>
            <asp:TextBox ID="txtProductName" runat="server"  />
        </td>
        <td>
            UnitsInStock : 
        </td>
        <td>
            <asp:TextBox ID="txtUnitsInStock" runat="server" />
        </td>
    </tr>
    <tr>
        <td>
            
        </td>
        <td>
            UnitPrice : 
        </td>                            
        <td>
            <asp:TextBox ID="txtUnitsPrice" runat="server" />
        </td>
        <td>
            UnitsOnOrder : 
        </td>
        <td>
            <asp:TextBox ID="txtUnitsOnOrder" runat="server" ReadOnly="true" />
        </td>
    </tr>
    <tr>
        <td>
            
        </td>
        <td colspan="4">
            <h3 style="border-bottom:dotted 1px black">Features :</h3>
            <FTB:FreeTextBox ID="ftbFeatures" runat="server" />
        </td>
    </tr>
    <tr>
        <td>
            
        </td>
        <td colspan="4">
            <h3 style="border-bottom:dotted 1px black">DescriptionBrief :</h3>
            <FTB:FreeTextBox ID="ftbDescriptionBrief" runat="server" />
        </td>
    </tr>
    <tr>
        <td>
             
        </td>
        <td colspan="4">
            <h3 style="border-bottom:dotted 1px black">Description :</h3>
            <FTB:FreeTextBox ID="ftbDescription" runat="server" />
        </td>
    </tr>
    <tr>
        <td colspan="5">
            <h3 style="border-bottom:dotted 1px black">Picture :</h3>
            <div style="float:left"><b>Choose images : </b>
                <asp:FileUpload ID="myFile" runat="server" /><br />
                <p>Set image size : <asp:TextBox ID="txtSize" runat="server" Width="30px" MaxLength="3" /> pixel
                    <asp:Button ID="btnSaveImage" runat="server" Text="Save Image" />
                </p>
                <asp:Label ID="lblValidate" runat="server" ForeColor="red"/>  
            </div>
            <div style="float:right"><asp:Image ID="previewImage" runat="server" /></div>
        </td>
    </tr>                                                                                                                                                                                                                                                            
    <tr>
        <td colspan="5" align="center">
            <asp:Button ID="btnInsert" Text="Insert" runat="server" OnClick="btnInsert_Click" />
             <asp:Button ID="btnEdit" runat="server" Text="Edit" OnClick="btnEdit_Click" />
            <asp:Button ID="btnDelete" Text="Delete" runat="server" OnClick="btnDelete_Click" />
            <asp:Button ID="btnCancel" Text="Cancel" runat="server" />
        </td>
    </tr> 
</table> 


</asp:Content>

